package thread;

public class Boss {
    public static void main(String[] args) throws InterruptedException {
        Worker w=new Worker("周扒皮");
        w.start();
        while(true){
            Thread.sleep(1500);
            System.out.println("老板醒了,喊工人不要偷懒");
            w.interrupt();// 吵醒工人
        }
    }
}
